Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: config interface extracted #6265

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Scoppio
Copy link
Collaborator

@Scoppio Scoppio commented Dec 14, 2024

Extracted a new GameOptions interface for weapons, entities, etc, necessary to isolate the options in the autoresolve

Related

MegaMek/megameklab#1665

this(owner, name, FLOAT, defaultValue);
}

public Option(AbstractOptions owner, String name, Vector<String> defaultValue) {
@SuppressWarnings("unused")
public Option(IGameOptions owner, String name, Vector<String> defaultValue) {

Check notice

Code scanning / CodeQL

Useless parameter Note

The parameter 'defaultValue' is never used.
boolean advancedAMS = false;
boolean advancedPD = false;
boolean advancedAMS;
boolean advancedPD;

Check warning

Code scanning / CodeQL

Field masks field in super class Warning

This field shadows another field called
advancedPD
in a superclass.
@Scoppio Scoppio force-pushed the game-options-interface branch 2 times, most recently from fb116a8 to 0cbcfbd Compare December 14, 2024 03:46
@Scoppio Scoppio force-pushed the game-options-interface branch from 0cbcfbd to b28bb1a Compare December 14, 2024 14:45
Copy link

codecov bot commented Dec 14, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Please upload report for BASE (master@ae8cbb8). Learn more about missing BASE report.
Report is 9 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff            @@
##             master    #6265   +/-   ##
=========================================
  Coverage          ?   28.99%           
  Complexity        ?    13982           
=========================================
  Files             ?     2652           
  Lines             ?   268284           
  Branches          ?    47761           
=========================================
  Hits              ?    77797           
  Misses            ?   186605           
  Partials          ?     3882           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Comment on lines -441 to +427
logger.error(ex, "Failed to start Server");
logger.error("Failed to start Server", ex);
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please ignore that I did this a couple of times, I am used to log4j formatting

Comment on lines -35 to +39
/**
* Returns a count of all options in this object.
* @return Option count.
*/
public int count() {
@Override
public int count() {
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

javadoc extracted to the interface

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants